// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_a;

import android.content.Context;
import android.view.*;
import android.widget.*;
import com.nnee.p_l.p_b.cls_a;
import com.nnee.p_pr.p_atom.cls_u;
import java.util.LinkedList;
import java.util.List;

// Referenced classes of package com.nnee.p_pr.p_activity.a:
//            w

public class cls_v extends BaseAdapter
{

    public v(Context context)
    {
        b = context;
        c = (LayoutInflater)context.getSystemService("layout_inflater");
    }

    private void a(w w1, View view)
    {
        w1.a = (TextView)view.findViewById(0x7f0d00da);
        w1.b = (TextView)view.findViewById(0x7f0d00dc);
        w1.c = (TextView)view.findViewById(0x7f0d00dd);
        w1.d = (RatingBar)view.findViewById(0x7f0d00de);
_L1:
        return;
        NullPointerException nullpointerexception;
        nullpointerexception;
        nullpointerexception.printStackTrace();
          goto _L1
        Exception exception;
        exception;
        throw exception;
    }

    private void a(w w1, cls_u u1, int i)
    {
        String s = u1.X();
        w1.a.setText(s);
        w1.d.setNumStars(u1.ae());
        w1.d.setRating((float)u1.ah());
        String s1 = u1.aB();
        w1.b.setText(s1);
        String s2 = com.nnee.l.b.a.a(b, u1);
        w1.c.setText(s2);
_L1:
        return;
        NullPointerException nullpointerexception;
        nullpointerexception;
        nullpointerexception.printStackTrace();
          goto _L1
        Exception exception;
        exception;
        throw exception;
    }

    public cls_u a(int i)
    {
        cls_u u1;
        if(a != null)
        {
            if(i >= a.size())
                i = -1 + a.size();
            u1 = (u)a.get(i);
        } else
        {
            u1 = null;
        }
        return u1;
    }

    public void a()
    {
        LinkedList linkedlist = a;
        linkedlist;
        JVM INSTR monitorenter ;
        a.clear();
        notifyDataSetChanged();
        return;
    }

    public void a(LinkedList linkedlist)
    {
        a = linkedlist;
    }

    public void a(List list)
    {
        if(list != null && list.size() != 0) goto _L2; else goto _L1
_L1:
        return;
_L2:
        LinkedList linkedlist = a;
        linkedlist;
        JVM INSTR monitorenter ;
        for(int i = -1 + list.size(); i >= 0; i--)
            a.addFirst(list.get(i));

        notifyDataSetChanged();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public void b(List list)
    {
        if(list != null && list.size() != 0) goto _L2; else goto _L1
_L1:
        return;
_L2:
        LinkedList linkedlist = a;
        linkedlist;
        JVM INSTR monitorenter ;
        a.addAll(list);
        notifyDataSetChanged();
        if(true) goto _L1; else goto _L3
_L3:
    }

    public int getCount()
    {
        int i = 0;
        if(a != null)
            i = a.size();
        return i;
    }

    public Object getItem(int i)
    {
        return a(i);
    }

    public long getItemId(int i)
    {
        return (long)i;
    }

    public View getView(int i, View view, ViewGroup viewgroup)
    {
        w w1;
        cls_u u1;
        if(view != null && (view.getTag() instanceof cls_w))
        {
            w1 = (w)view.getTag();
        } else
        {
            view = c.inflate(0x7f03003e, null);
            w1 = new cls_w(this);
            a(w1, view);
            view.setTag(w1);
        }
        u1 = a(i);
        if(u1 != null)
            a(w1, u1, i);
        return view;
    }

    private LinkedList a;
    private Context b;
    private LayoutInflater c;
}
